package com.stdroom.hellomyfriend.common;

import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.telephony.SmsManager;

public class SendMessage {

	SmsManager smsManager;
	PendingIntent pendingIntent;
	public SendMessage(Context context){
		smsManager = SmsManager.getDefault();
		pendingIntent = PendingIntent.getBroadcast(context, 0, new Intent(), 0);
	}
	
	public boolean send(String phoneNumber,String msg){
		smsManager.sendTextMessage(phoneNumber, null, msg, pendingIntent, null);
		return true;
	}
}
